//
// Created by 11510 on 2024/6/7.
//
#include <iostream>
#include <string.h>
#include <vector>
#include <limits>

using std::cout;
using std::endl;
using std::cin;
using std::vector;
using std::istream;
using std::string;

void checkStreamStatus(istream &is){
    cout << is.good() << endl;
    cout << is.fail() << endl;
    cout << is.bad() << endl;
    cout << is.eof() << endl;
}

void test0(){
    int num;
    cin >> num;
    cout << "num1:" << num << endl;
    if(!cin.good()) {
        cin.clear();
        cin.ignore(std::numeric_limits<std::streamsize>::max(),'\n');
    }

    checkStreamStatus(cin);

    string line;
    cin >> line;
    cout << "line:" << line << endl;
}



int main(int argc, char *argv[]){
    test0();
    return 0;
}

